#include "stdafx.h"
#include "block_type.h"

block_info::block_info()
{
}

block_info::block_info(BLOCK_TYPE _type):m_block_type(_type)
{
}

block_info::~block_info()
{
}

block_object_info::block_object_info(uint16 _cx,uint16 _cy):m_block_points(extents[_cx][_cy])
{
}

block_object_info::~block_object_info()
{
}

bool block_object_info::is_collide( tr1::shared_ptr<player> _ptr )
{
	return false;
}

void block_object_info::move_to( int32 _x,int32 _y )
{
	m_start_x = _x;
	m_start_y = _y;
}


void block_object_info::move( int32 _offset_x,int32 _offset_y )
{
	m_start_x += _offset_x;
	m_start_y += _offset_y;
}

uint block_object_info::get_row_count()
{
	return m_block_points[0].size();
}

uint block_object_info::get_col_count()
{
	return m_block_points.size();
}

void block_object_info::resize( uint16 _cx,uint16 _cy )
{
	m_block_points.resize(extents[_cx][_cy]);
}
